package com.xmy.cultivate.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.xmy.cultivate.entity.StaffRanking;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


/**
 * <p>
 * 员工排位名称 Mapper 接口
 * </p>
 *
 * @author hpiggy
 * @since 2023-05-16
 */
@Mapper
public interface StaffRankingMapper extends BaseMapper<StaffRanking> {

    /**
     * 获取排位编号
     *
     * @param wrapper
     * @return 排位编号
     */
    @Select("SELECT id FROM staff_ranking ${ew.customSqlSegment}")
    Long getId(@Param(Constants.WRAPPER) Wrapper wrapper);

}
